<?php


namespace app\admin\service\diy;

use app\common\model\article\Article;
use app\common\model\diy\Link;
use tmcore\base\BaseService;

class LinkService extends BaseService
{

    /**
     * 获取链接数据
     * @return array
     */
    public static function getList() : array
    {
        // 搜索条件
        $searchParam = [
            '=' => ['type'],
        ];
        $where = self::getSearchData($searchParam, []);

        return Link::where($where)
            ->order(['id' => 'asc'])
            ->select()
            ->toArray();
    }
}